<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css"/>
	</head>
	<body>
	<div class="am-g">
		 {include file='../Common/hy_header.html'}
		<div class="am-tabs am-margin" data-am-tabs="{ noSwipe: 1}">
    <ul class="am-tabs-nav am-nav am-nav-tabs">
      <li class="am-active"><a hidefocus="true" href="#tab1">弹框组详情</a></li>
      
</ul>

    <form class="am-tabs-bd am-form hy-js-form" style="touch-action: pan-y; -webkit-user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">
      
      <div class="am-tab-panel am-fade am-active am-in" id="tab1">
      	<div class="am-form-group">
          <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              弹框组名称
            </div>
            <div class="am-u-sm-4 am-u-end">
              <input type="text" name="name" value="{$ad.name}" class="am-input-sm">
            </div>
          </div>
			</div>
    	
	
    	
		<div class="am-form-group">
		  <div  class="am-g am-margin-top hy-js-menupanel ">
							<div class="am-u-sm-2 am-text-right">弹框组类型</div>
							
							
							<div class="am-u-sm-4 am-u-end">
								
								{if $id>0}
								<input type="hidden" name="type" value="{$ad.type}">
								<select name="type" disabled="disabled">
								{else}
								<select name="type">
									
								{/if}
								
								
									<option {if $ad.type==1} selected="selected" {/if} value="1">个人信息流程</option>
									<option {if $ad.type==2} selected="selected" {/if} value="2">中奖无信息框流程</option>
									<option {if $ad.type==3} selected="selected" {/if} value="3">复合流程</option>
								</select>
							</div>
						</div>
			</div>
				

    
    	
		<div class="am-form-group">
		   <div class="am-g am-margin-top">
            <div class="am-u-sm-2 am-text-right">
              预计参与人数
            </div>
            <div class="am-u-sm-4 am-u-end">
              <input type="text" name="totalnums" value="{$ad.totalnums}" class="am-input-sm"  placeholder="请输入正整数">
            </div>
			<div class="am-u-sm-4 am-u-end" style="color:silver">
              预计人数与中奖概率直接相关。假设：预计参与人数为100，一等奖中奖概率为5%，则每20人中将会出现1位一等奖，若二等奖中奖概率为20%，则每5人中将会出现1位二等奖，以此类推，直至等于限制中奖人数。
            </div>
          </div>
		  </div>
    	
	
  
     
 		<input type="hidden" name="id" value="{$id}" />
		 </div>
    </form>
    <div class="am-margin">
    <button type="button" class="am-btn am-btn-primary hy-js-submit am-btn-xs">提交保存</button>
    
  </div>
  </div>
	</div>	
	 
	  {include file='../Common/hy_footer.html'}
	<script type="text/javascript" src="{$_C.hy_path}js/editor/kindeditor.js"></script>
	<script type="text/javascript">
	    hy_uploadimg('/ad',{},function(result){
	    	if(typeof(result[0])!='undefined')
	    	{
	        	$('#hy-thumb').attr('src',result[0]);
	        	$('input[name=pic]').val(result[0]).focus();
	       }
	    })
	    
	    hy_submit('index.php?g=admin&m=chat&a={$action}','',function(result){
			showMsg(result.content,result.error);
			parent.$('#box-group').attr('src', parent.$('#box-group').attr('src'));
		});
	</script>
	</body>
</html>
